﻿#ifndef U_HTTPSERVER_H
#define U_HTTPSERVER_H

#include <QJsonObject>
#include <QJsonArray>
#include <QJsonDocument>

#include "Console/myobject.h"
#include "Console/Http/JQNet.h"
#include "Console/Http/JQHttpServer.h"
#include "Console/Server/WebApi.h"

class HttpServer : public MyObject
{
    Q_OBJECT
public:
    explicit HttpServer(QObject *parent = nullptr);

signals:

public slots:
    void Start();
    void Stop();
    void OnTimer();

public:
    int port;
    bool listen;
    JQHttpServer::TcpServerManage *httpServerManage;

    WebApi          *webApi;
};

#endif // U_HTTPSERVER_H
